// DBVariable.h: interface for the DBVariable class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DBVARIABLE_H__1595BC67_54B4_4091_97A3_56746795D512__INCLUDED_)
#define AFX_DBVARIABLE_H__1595BC67_54B4_4091_97A3_56746795D512__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "PropertyVariable.h"

namespace PropertySystem
{
	class DllExport DBVariable : public PropertyVariable  
	{
		UE_DECLARE_DYNAMIC(DBVariable);
		friend class OriginalProperty;
	public:
		DBVariable();
		virtual ~DBVariable();

	public:
		virtual void InitValue();
		virtual PropertyVariable* Clone();
		virtual BOOL Accept(PropertyVisitor& visitor);

	public:
		const CString& PropertyTable() const {
			return m_strPropertyTable;
		}

		const CString& PropertyField() const {
			return m_strPropertyField;
		}

	protected:
		void PropertyTable(const CString& strTable){
			m_strPropertyTable = strTable;
		}

		void PropertyField(const CString& strField){
			m_strPropertyField = strField;
		}

	private:
		CString m_strPropertyTable;
		CString m_strPropertyField;
	};
};
#endif // !defined(AFX_DBVARIABLE_H__1595BC67_54B4_4091_97A3_56746795D512__INCLUDED_)
